import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const router = new Router({
  routes: [
    {
      path: '/pay',
      name: 'pay',
      component: () => import(/* webpackChunkName: "home" */ '@/views/pay.vue'),
      meta: {
        keepAlive: true,
      },
    },
    {
      path: '/',
      name: 'home1',
      component: () => import(/* webpackChunkName: "home" */ '@/views/home.vue'),
      meta: {
        keepAlive: true,
      },
    },
    {
      path: '/home',
      name: 'home2',
      component: () => import(/* webpackChunkName: "home" */ '@/views/home.vue'),
      meta: {
        keepAlive: true,
      },
    },
    {
      path: '/novel',
      name: 'novel',
      component: () => import(/* webpackChunkName: "novel" */ '@/views/novel.vue'),
      meta: {
        keepAlive: true,
      },
    },
    {
      path: '/novelDetail',
      name: 'novelDetail',
      component: () => import(/* webpackChunkName: "novelDetail" */ '@/views/novelInclude/novelDetail.vue'),
    },
    {
      path: '/meitu',
      name: 'meitu',
      component: () => import(/* webpackChunkName: "meitu" */ '@/views/meitu.vue'),
      meta: {
        keepAlive: true,
      },
    },
    {
      path: '/video',
      name: 'video',
      component: () => import(/* webpackChunkName: "video" */ '@/views/video.vue'),
      meta: {
        keepAlive: true,
      },
    },
    {
      path: '/videoCate/:id',
      name: 'videoCate',
      component: () => import(/* webpackChunkName: "videoCate" */ '@/views/videoInclude/videoCate.vue'),
      meta: {
        keepAlive: false,
      },
    },
    {
      path: '/music',
      name: 'music',
      component: () => import(/* webpackChunkName: "music" */ '@/views/music.vue'),
      meta: {
        keepAlive: true,
      },
    },
    {
      path: '/musicChannel',
      name: 'musicChannel',
      component: () => import(/* webpackChunkName: "channelPage" */ '@/views/musicInclude/channelPage.vue'),
      meta: {
        keepAlive: false,
      },
    },
    {
      path: '/rankings',
      name: 'rankings',
      component: () => import(/* webpackChunkName: "rankings" */ '@/views/musicInclude/rankings.vue'),
      meta: {
        keepAlive: false,
      },
    },
    {
      path: '/searchMusic',
      name: 'searchMusic',
      component: () => import(/* webpackChunkName: "searchMusic" */ '@/views/musicInclude/searchMusic.vue'),
      meta: {
        keepAlive: false,
      },
    },


  ],
});

export default router;
